import request from '@/utils/request'

// 查询待录入考试
export function queryExam(data) {
    return request({
      url: '/exam/result/queryExam',
      method: 'post',
      data
    })
} 

// 查询地区
export function queryClassStudents(data) {
    return request({
      url: '/exam/result/queryClassStudents',
      method: 'post',
      data
    })
} 

// 新增or修改考试结果
export function editExamResult(data) {
    return request({
      url: '/exam/result/edit',
      method: 'post',
      data
    })
} 

// 分页查询列表
export function pageList(data) {
    return request({
      url: '/exam/result/pageList',
      method: 'post',
      data
    })
} 

//查询考试结果
export function queryExamResult(data) {
    return request({
      url: '/exam/result/queryExamResult',
      method: 'post',
      data
    })
} 

//查询补考名单
export function queryMakeUpExamResult(data) {
  return request({
    url: '/exam/result/queryMakeUpExam',
    method: 'post',
    data
  })
}

export function findExamDetail(query){
  return request({
      url: '/exam/result/getExamDetail',
      method: 'get',
      params: query
  })
}

export function findExamStudentsByResit(query){
  return request({
      url: '/exam/result/getExamStudentsByExamId',
      method: 'get',
      params: query
  })
}

export function getResitExamStudents(id){
  return request({
      url: '/exam/result/getResitExamStudents/' + id,
      method: 'get'
  })
}

